<%--
  Created by IntelliJ IDEA.
  User: jiang
  Date: 2022/6/15
  Time: 12:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>学生信息管理</title>
</head>
<body>
<div class="main">
    <h2 class="title"><span>学生信息管理</span></h2>
    <form action="StudentController.do?act=Deletes" method="post">
        <table border="1" width="100%" class="tab">
            <tr>
                <th><input type="checkbox" id="chbAll"></th>
                <th>学号</th>
                <th>姓名</th>
                <th>年龄</th>
                <th>学院</th>
                <th>入学日期</th>
                <th>操作</th>
            </tr>
            <c:forEach var="Student" items="${student}">
                <tr>
                    <th><input type="checkbox" name="ids" value="${Student.id}"></th>
                    <td>${Student.id}</td>
                    <td>${Student.name}</td>
                    <td>${Student.age}</td>
                    <td>${Student.college}</td>
                    <td><fmt:formatDate value="${Student.admissionDate}" pattern="yyyy年MM月dd日"/></td>
                    <td>

                        <a href="StudentController.do?act=EditBook&id=${Student.id}" class="abtn">编辑</a>
                    </td>
                </tr>
            </c:forEach>
        </table>
        <p style="color: #00ffc4">${message}</p>
        <p>
            <a href="StudentController.do?act=AddBook" class="abtn">添加</a>
            <input type="submit"  value="删除选择项" class="btn"/>
        </p>
    </form>
</div>

</body>
</html>
